<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0
 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
        <script language="javascript">

            function SetScreenNum(varStr)
            {
            TestOCX.SetScreenNum(varStr); 
            }
            function Play()
            {
            TestOCX.Play(-1, "192.168.56.213", 37777, "admin", "admin", 0, 0); 
            }
                function StopPlay(varStr)
            {
            TestOCX.StopPlay(varStr); 
            }
            function StopAllPlay()
            {
            TestOCX.StopAllPlay(); 
            }
            function GetSelPlayIndex()
            {
            TestOCX.GetSelPlayIndex(); 
            }
            function testApi(data){
                alert(data);
            }
        </script>

    </head>
    <body>
        <OBJECT ID="TestOCX" WIDTH="1200" HEIGHT="700" CLASSID="CLSID:6F8B309C-14AD-4F53-8E17-AF1594F4933C">
        </OBJECT> 
        //html代码
        </br></br>
        <a href="javascript:SetScreenNum('9')" >调用OCX的SetScreenNum方法，设置9画面</a> 
        <a href="javascript:Play()" >调用OCX的PLAY方法，播放</a>
        <a href="javascript:StopPlay('0')" >调用OCX的SetScreenNum方法，停止第1个画面播放</a>
        <a href="javascript:StopAllPlay()" >调用OCX的SetScreenNum方法，停止所有画面播放</a>
        <a href="javascript:GetSelPlayIndex()" >调用OCX的GetSelPlayIndex方法，得到第几个画面的焦点</a>
    </body>  
</html>
<script>

</script>
